package com.party.model;

import java.io.Serializable;

public class PartyFlow implements Serializable {
    private Integer id;

    private String flowname;

    private String flownumber;

    private String flowdesc;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFlowname() {
        return flowname;
    }

    public void setFlowname(String flowname) {
        this.flowname = flowname == null ? null : flowname.trim();
    }

    public String getFlownumber() {
        return flownumber;
    }

    public void setFlownumber(String flownumber) {
        this.flownumber = flownumber == null ? null : flownumber.trim();
    }

    public String getFlowdesc() {
        return flowdesc;
    }

    public void setFlowdesc(String flowdesc) {
        this.flowdesc = flowdesc == null ? null : flowdesc.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        PartyFlow other = (PartyFlow) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getFlowname() == null ? other.getFlowname() == null : this.getFlowname().equals(other.getFlowname()))
            && (this.getFlownumber() == null ? other.getFlownumber() == null : this.getFlownumber().equals(other.getFlownumber()))
            && (this.getFlowdesc() == null ? other.getFlowdesc() == null : this.getFlowdesc().equals(other.getFlowdesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getFlowname() == null) ? 0 : getFlowname().hashCode());
        result = prime * result + ((getFlownumber() == null) ? 0 : getFlownumber().hashCode());
        result = prime * result + ((getFlowdesc() == null) ? 0 : getFlowdesc().hashCode());
        return result;
    }
}